home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 27.zip / BS1 part 27 / Panorama3_d1.adf / ARexxMacros / README_Rexx < prev    next >
Text File  |  1993-03-02  |  4KB  |  61 lines

  1.  
  2.                           ARexx Examples
  3.  
  4.      This directory contains a few simple examples of ARexx macros
  5. for use with Panorama.  Use them as starting points for developing
  6. your own macros, along with the `F10.Panorama' ARexx Demo macro in the
  7. root directory of the Panorama disk.  The files are ordinary Amiga text
  8. files and can be modified with your favorite text editor.  But be sure
  9. to keep the original versions in a safe place.
  10.      Each file begins with a comment (as all ARexx programs must) which
  11. describes what the macro does and what sort of input it requires.  Both
  12. Microscope.rexx and RivLakePts.rexx require data input on the command
  13. line, Microscope.rexx the i,j labels of the point at the center of the
  14. picture and RivLakePts.rexx the number of the spring at the beginning
  15. of the river whose path you want to find.  You must have ARexx properly
  16. installed on your system to run any of these macros.  For instance, to
  17. use Microscope.rexx to examine the local neighborhood of a point in the
  18. landscape with the labels i=-20 and j=12, enter "rx Microscope -20 12"
  19. in a CLI  or AmigaShell window.  Any output from the macro will be
  20. displayed in this same window.
  21.      The macros `F6.Panorama', `F7.Panorama', and `F8.Panorama' can be
  22. run from the corresponding function keys within Panorama.  They will
  23. transfer a 24-bit picture created with Panorama to the ToasterPaint
  24. program so it will be displayed on NewTek's Video Toaster.  First, copy
  25. these macros to the directory from which you are running Panorama.
  26. Draw a picture in Panorama with `24-bit' turned on (checked) in the
  27. Switches menu.  When the drawing is finished, make sure that `Hold
  28. Picture' in the Project menu on the picture screen is checked, and then
  29. `Exit' back to the Main Control window.  Have ToasterPaint running in
  30. the background.  With the Main Control window the active window, press
  31. <F6> to select the `dv1' buffer in the Video Toaster, or press <F7> to
  32. select the `dv2' buffer.  You will get an error message in the Rexx-
  33. Panorama window on the Workbench screen if ToasterPaint is not running.
  34. Then press <F8>.  Panorama will be told to save the 24-bit picture to
  35. your ram: disk, with the filename `pan.iff', and then, if the save is
  36. successful, ToasterPaint will be told to load and display the picture on
  37. the Toaster.  Starting from these examples, it is straightforward to
  38. write a script to process all of the frames of an animation.
  39.      Thanks to Mark Thomas and Rick Unland for sharing the Toaster
  40. macros.
  41.      The macros `PanToFC.rexx' and `PanToDCTV.rexx' use ASDG's Art
  42. Department Professional program to transfer 24-bit pictures from
  43. Panorama to the FireCracker board and to DCTV format, respectively.
  44. Similar to the Toaster macros, ADPro must be running in the background.
  45. Create a 24-bit picture in Panorama, be sure `Hold Picture' is in effect,
  46. and `Exit' from the picture screen back to the Main Control screen.  Run
  47. the appropriate macro, either with the `rx' program from a CLI window or
  48. by copying the macro to the directory from which you are running Panorama
  49. under the name `F9.Panorama' and pressing the <F9> function key.  The macro
  50. directs Panorama to save the 24-bit picture to `ram:pan.iff' and then
  51. tells ADPro to load this file and either save it to the FireCracker board
  52. or create and display a DCTV-encoded high-res picture.  Both macros
  53. kill the 24-bit picture in Panorama to economize on memory, and clean up
  54. by deleting the `ram:pan.iff' file.  Both macros depend on the appropriate
  55. ADPro modules being available and can easily be extended in functionality.
  56. They leave the ADPro screen in front, but you can use `Left-Amiga-M' to
  57. toggle back to Panorama's screen.
  58.      When running ADPro with Panorama, be sure to set the MAXMEM tooltype
  59. in the ADPro icon to limit the tendency of ADPro to gobble up all available
  60. memory.  Otherwise, there will not be enough free memory for Panorama to
  61. function.